package com.example.administrator.myapplication;

import android.app.Application;
import android.content.SharedPreferences;

import com.example.administrator.myapplication.tools.History;

import java.util.ArrayList;
import java.util.List;

import cn.bmob.v3.Bmob;

public class BmobApplication extends Application {
    /**
     * SDK初始化也可以放到Application中
     */
    private static final long serialVersionUID = 1L;
    public static String APPID = "ea10c73a862f191b757e8c52a972e852";

    private String heart_rate_result="";
    private String heart_time_result="";
    private String muscle_result="";
    private String soft_result="";
    private String heart_result="";
    private String body_height_result="";
    private String body_weight_result="";
    private String body_age_result="";
    private String body_result="";
    public List<History> list=new ArrayList<History>();
    public History now_history=new History();
    private String school="";
    private String major="";
    private String grade="";
    private String heartrate = "";
    private boolean is_man=false;
    private int flag;      //判断是从哪一个完成页面  跳到结果页面

    //heart:1    muscle:2    soft:3    body:4
    private int intentflag;   //判断应该返回哪一个页面

    //HomeActivity:0        EvaluateMainActivity :1  PersonalCenterTestedActivity 2;
    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getIntentflag() {
        return intentflag;
    }

    public void setIntentflag(int intentflag) {
        this.intentflag = intentflag;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getHeartrate() {
        return heartrate;
    }

    public void setHeartrate(String heartrate) {
        this.heartrate = heartrate;
    }

    public boolean is_man() {
        return is_man;
    }

    public void setIs_man(boolean is_man) {
        this.is_man = is_man;
    }



    public String getHeart_rate_result() {
        return heart_rate_result;
    }

    public void setHeart_rate_result(String heart_rate_result) {
        this.heart_rate_result = heart_rate_result;
    }

    public String getHeart_time_result() {
        return heart_time_result;
    }

    public void setHeart_time_result(String heart_time_result) {
        this.heart_time_result = heart_time_result;
    }

    public String getMuscle_result() {
        return muscle_result;
    }

    public void setMuscle_result(String muscle_result) {
        this.muscle_result = muscle_result;
    }

    public String getSoft_result() {
        return soft_result;
    }

    public void setSoft_result(String soft_result) {
        this.soft_result = soft_result;
    }

    public String getBody_height_result() {
        return body_height_result;
    }

    public void setBody_height_result(String body_height_result) {
        this.body_height_result = body_height_result;
    }

    public String getBody_result() {
        return body_result;
    }

    public void setBody_result(String body_result) {
        this.body_result = body_result;
    }

    public String getHeart_result() {
        return heart_result;
    }

    public void setHeart_result(String heart_result) {
        this.heart_result = heart_result;
    }

    public String getBody_weight_result() {
        return body_weight_result;
    }

    public void setBody_weight_result(String body_weight_result) {
        this.body_weight_result = body_weight_result;
    }

    public String getBody_age_result() {
        return body_age_result;
    }

    public void setBody_age_result(String body_age_result) {
        this.body_age_result = body_age_result;
    }

    @Override

    public void onCreate() {
        super.onCreate();
        Bmob.initialize(this, APPID);
    }



}